CREATE TABLE Sizes(
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](255) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[CreatedBy] [bigint] NOT NULL,
 CONSTRAINT [PK_Sizes] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].Sizes  WITH CHECK ADD  CONSTRAINT [FK__Sizes__Create__68487DD7] FOREIGN KEY([CreatedBy])
REFERENCES [dbo].[Users] ([Id])
GO

ALTER TABLE [dbo].Sizes CHECK CONSTRAINT [FK__Sizes__Create__68487DD7]
GO

ALTER TABLE [dbo].Sizes ADD  CONSTRAINT [DF_Sizes_CreatedDate]  DEFAULT (getdate()) FOR [CreatedDate]
GO

INSERT INTO [Modules]([Id],[Name],[IsEnabled],[CreatedDate])
     VALUES(5,'Tallas',1,GETDATE())
	 
INSERT INTO [Permissions]([Id],[PermissionTypeId],[ModuleId],[CreatedDate])
     VALUES (17,1,5,GETDATE())
INSERT INTO [Permissions]([Id],[PermissionTypeId],[ModuleId],[CreatedDate])
     VALUES (18,2,5,GETDATE())
INSERT INTO [Permissions]([Id],[PermissionTypeId],[ModuleId],[CreatedDate])
     VALUES (19,3,5,GETDATE())
INSERT INTO [Permissions]([Id],[PermissionTypeId],[ModuleId],[CreatedDate])
     VALUES (20,4,5,GETDATE())
	 
INSERT INTO [RolePermissions]([RoleId],[PermissionId],[CreatedDate])
     VALUES(1,17,GETDATE())
INSERT INTO [RolePermissions]([RoleId],[PermissionId],[CreatedDate])
     VALUES(1,18,GETDATE())
INSERT INTO [RolePermissions]([RoleId],[PermissionId],[CreatedDate])
     VALUES(1,19,GETDATE())
INSERT INTO [RolePermissions]([RoleId],[PermissionId],[CreatedDate])
     VALUES(1,20,GETDATE())